
package org.come.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import org.come.entity.RoleSummoning;

public class RoleShow {
	// 所在坐标
	private int x;
	private int y;
	private int yidong_type;
	// 所在地图
	private Long mapid;
	private List<PathPoint> Player_Paths;
	// 角色ID
	private BigDecimal role_id;
	//角色表里的帮派ID
	private BigDecimal gang_id;
	// 帮派名称
	private String gangname;
	// 种类ID
	private BigDecimal species_id;
	// 摆摊ID
	private BigDecimal booth_id;
	//任务id 现在是徽章id
	private Integer skill_id;
	//转生标识字段（0转为0，1转为1以此类推）
	private int TurnAround = 0;
	// 等级
	private Integer grade;
	// 角色名字
	private String rolename;
	// 角色称谓
	private String title;
	//判断是否在战斗中(1、战斗中)
	private int fighting;
	// 坐骑ID
	private int mount_id;
	//飞行器ID
	private int fly_id;
	private String flyskin;
	//飞行器状态 0 = 起飞中 1 = 飞行 2 = 降落
	private Integer flyType = -1;
	private int flyX = 0, flyY = 0;
	// 飞行器速度
	private Double flySpeed= 0.28d;
	//队伍ID
	private BigDecimal troop_id;
	//队伍信息（队长名字|队员一|队员二|.......）
	private String teamInfo;
	//皮肤
	private String skin;

	private String role_name;

	
	private BigDecimal summoning_id;//宠物跟随

	private List<RoleSummoning> showRoleSummoningList;//宠物跟随
	//是否为队长（0、不是    1、是）
	private transient int captian;
	private int attachPack;// 扩充背包数量
	private Boolean divineRune = false;
	public RoleShow(LoginResult loginResult) {
		this.init(loginResult);
	}
	public RoleShow(int x, int y) {
		this.x = x;
		this.y = y;
		if (this.Player_Paths == null) {
			this.Player_Paths = new ArrayList<>();
		} else {
			this.Player_Paths.clear();
		}
	}
	public void init(LoginResult loginResult) {
		if (this.Player_Paths == null) {
			this.Player_Paths = new ArrayList<>();
		} else {
			this.Player_Paths.clear();
		}

	    x = loginResult.getX().intValue();
		y = loginResult.getY().intValue();
		mapid = loginResult.getMapid();
		role_id = loginResult.getRole_id();
		gang_id = loginResult.getGang_id();
		gangname = loginResult.getGangname();
		species_id = loginResult.getSpecies_id();
		booth_id = loginResult.getBooth_id();
		skill_id = loginResult.getSkill_id();
		TurnAround = loginResult.getTurnAround();
		grade = loginResult.getGrade();
		rolename = loginResult.getRolename();
		title = loginResult.getTitle();
		fighting = loginResult.getFighting();
		mount_id = loginResult.getMount_id();
		fly_id = loginResult.getFly_id();
		flyskin= loginResult.getFlyskin();
		troop_id = loginResult.getTroop_id();
		teamInfo = loginResult.getTeamInfo();
		skin = loginResult.getSkin();
		attachPack = loginResult.getAttachPack();
		divineRune = loginResult.getDivineRune();
		role_name = loginResult.getRace_name();
	}

	public List<PathPoint> getPlayer_Paths() {
		return this.Player_Paths;
	}

	public void setPlayer_Paths(List<PathPoint> player_Paths) {
		this.Player_Paths = player_Paths;
	}

	public BigDecimal getRole_id() {
		return this.role_id;
	}

	public void setRole_id(BigDecimal role_id) {
		this.role_id = role_id;
	}



	public BigDecimal getGang_id() {
		return this.gang_id;
	}

	public void setGang_id(BigDecimal gang_id) {
		this.gang_id = gang_id;
	}

	public String getGangname() {
		return this.gangname;
	}

	public void setGangname(String gangname) {
		this.gangname = gangname;
	}

	public BigDecimal getSpecies_id() {
		return this.species_id;
	}

	public void setSpecies_id(BigDecimal species_id) {
		this.species_id = species_id;
	}

	public BigDecimal getTroop_id() {
		return this.troop_id;
	}

	public void setTroop_id(BigDecimal troop_id) {
		this.troop_id = troop_id;
	}

	public BigDecimal getBooth_id() {
		return this.booth_id;
	}

	public void setBooth_id(BigDecimal booth_id) {
		this.booth_id = booth_id;
	}

	public Integer getSkill_id() {
		return this.skill_id;
	}

	public void setSkill_id(Integer skill_id) {
		this.skill_id = skill_id;
	}

	public int getTurnAround() {
		return this.TurnAround;
	}

	public void setTurnAround(int turnAround) {
		this.TurnAround = turnAround;
	}

	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public int getX() {
		return this.x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return this.y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public Long getMapid() {
		return this.mapid;
	}

	public void setMapid(Long mapid) {
		this.mapid = mapid;
	}

	public int getCaptian() {
		return this.captian;
	}

	public void setCaptian(int captian) {
		this.captian = captian;
	}

	public String getTeamInfo() {
		return this.teamInfo;
	}

	public void setTeamInfo(String teamInfo) {
		this.teamInfo = teamInfo;
	}

	public int getFighting() {
		return this.fighting;
	}

	public void setFighting(int fighting) {
		this.fighting = fighting;
	}

	public String getSkin() {
		return this.skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public int getMount_id() {
		return this.mount_id;
	}

	public void setMount_id(int mount_id) {
		this.mount_id = mount_id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	public int getAttachPack() {
		return attachPack;
	}
	public void setAttachPack(int attachPack) {
		this.attachPack = attachPack;
	}

	public String getTeam() {
		return this.teamInfo != null && !"".equals(this.teamInfo) && !"|".equals(this.teamInfo) ? this.teamInfo : this.rolename;
	}
	//飞行器
	public int getFly_id(){
		return fly_id;
	}
    public void setFly_id(int fly_id ){
    	this.fly_id=fly_id;
    };
	public String getFlyskin(){
		return flyskin;
	}
	public void setFlyskin(String flyskin){
		this.flyskin=flyskin;
	}	
	public Integer getFlyType() {
		return flyType;
	}

	public void setFlyType(Integer flyType) {
		this.flyType = flyType;
	}

	public int getFlyX() {
		return flyX;
	}

	public void setFlyX(int flyX) {
		this.flyX = flyX;
	}

	public int getFlyY() {
		return flyY;
	}

	public void setFlyY(int flyY) {
		this.flyY = flyY;
	}
	public Double getFlySpeed() {
		return flySpeed;
	}

	public void setFlySpeed(Double flySpeed) {
		this.flySpeed = flySpeed;
	}
	//宠物跟随
	public BigDecimal getSummoning_id() {
		return summoning_id;
	}

	public void setSummoning_id(BigDecimal summoning_id) {
		this.summoning_id = summoning_id;
	}

	public List<RoleSummoning> getShowRoleSummoningList() {
		return showRoleSummoningList;
	}

	public void setShowRoleSummoningList(List<RoleSummoning> showRoleSummoningList) {
		this.showRoleSummoningList = showRoleSummoningList;
	}

	public String getRole_name() {
		return this.role_name;
	}

	public void setRole_name(final String role_name) {
		this.role_name = role_name;
	}

	public Boolean getDivineRune() {
		return divineRune;
	}

	public void setDivineRune(Boolean divineRune) {
		this.divineRune = divineRune;
	}


	public int getYidong_type() {
		return yidong_type;
	}

	public void setYidong_type(int yidong_type) {
		this.yidong_type = yidong_type;
	}
}
